<?php
class EdicoesController extends AppController {

	var $name = 'Edicoes';
	var $scaffold = 'admin';
        var $paginate = array('limit'=>'5');
	var $helpers = array('Html', 'Form', 'Javascript', 'CakePtbr.Formatacao');

        function index(){
            $this->Edicao->recursive = 3;
            $this->set('edicoes', $this->paginate());
        }

        function exibe($id = null){
            $this->Texto->recursive = 2;
            $this->set('textos', $this->Edicao->Texto->findAllByEdicaoId($id));
            $this->set('edicao', $id);
        }
}
?>